﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    /// <summary>
    /// 沽清表
    /// </summary>
    public partial class corecmsfoodsoldout
    {
        /// <summary>
        /// 序列
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public Int64 id { get; set; }

        /// <summary>
        /// 总店id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "corpId", IsNullable = false)]
        public Int32 corpId { get; set; }

        /// <summary>
        /// 门店id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "storeId", IsNullable = false)]
        public Int32 storeId { get; set; }

        /// <summary>
        /// 商品id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "foodId", IsNullable = false)]
        public Int64 foodId { get; set; }

        /// <summary>
        /// 商品规格id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "foodSpecId", IsNullable = false)]
        public Int64 foodSpecId { get; set; }

        /// <summary>
        /// 可售数量
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "soldout", IsNullable = true)]
        public Decimal soldout { get; set; }

        /// <summary>
        /// 沽清类型(0按餐段,1按班次,2按营业日)
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "soldoutType", IsNullable = true)]
        public Int32 soldoutType { get; set; }

        /// <summary>
        /// 频率设置(0重复执行,1只执行一次)
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "autoSoldout", IsNullable = true)]
        public Int32 autoSoldout { get; set; }

        /// <summary>
        /// 沽清开始时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "soldoutTime", IsNullable = true)]
        public DateTime? soldoutTime { get; set; }

        /// <summary>
        /// 沽清结束时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "recoveryTime", IsNullable = true)]
        public DateTime? recoveryTime { get; set; }

        /// <summary>
        /// 沽清数量
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "recoveryQty", IsNullable = true)]
        public Decimal recoveryQty { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "deleted", IsNullable = true)]
        public Int32? deleted { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "modifyTime", IsNullable = true)]
        public Int64? modifyTime { get; set; }
    }
}
